/*
 * Copyright (C) 2023 xuexiangjys(xuexiangjys@163.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package com.xuexiang.templateproject.bean;

//import anet.channel.strategy.dispatch.DispatchConstants;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

public final class WxPayParam {
    @NotNull
    private final String appId;
    @NotNull
    private final String nonceStr;
    @NotNull
    private final String packageValue;
    @NotNull
    private final String partnerId;
    @NotNull
    private final String prepayId;
    @NotNull
    private final String sign;
    @NotNull
    private final String timeStamp;

    public WxPayParam(@NotNull String appId, @NotNull String partnerId, @NotNull String prepayId, @NotNull String packageValue, @NotNull String nonceStr, @NotNull String timeStamp, @NotNull String sign) {
        Intrinsics.checkNotNullParameter(appId, "appId");
        Intrinsics.checkNotNullParameter(partnerId, "partnerId");
        Intrinsics.checkNotNullParameter(prepayId, "prepayId");
        Intrinsics.checkNotNullParameter(packageValue, "packageValue");
        Intrinsics.checkNotNullParameter(nonceStr, "nonceStr");
        Intrinsics.checkNotNullParameter(timeStamp, "timeStamp");
        Intrinsics.checkNotNullParameter(sign, "sign");
        this.appId = appId;
        this.partnerId = partnerId;
        this.prepayId = prepayId;
        this.packageValue = packageValue;
        this.nonceStr = nonceStr;
        this.timeStamp = timeStamp;
        this.sign = sign;
    }

    public static /* synthetic */ WxPayParam copy$default(WxPayParam wxPayParam, String str, String str2, String str3, String str4, String str5, String str6, String str7, int i2, Object obj) {
        if ((i2 & 1) != 0) {
            str = wxPayParam.appId;
        }
        if ((i2 & 2) != 0) {
            str2 = wxPayParam.partnerId;
        }
        if ((i2 & 4) != 0) {
            str3 = wxPayParam.prepayId;
        }
        if ((i2 & 8) != 0) {
            str4 = wxPayParam.packageValue;
        }
        if ((i2 & 16) != 0) {
            str5 = wxPayParam.nonceStr;
        }
        if ((i2 & 32) != 0) {
            str6 = wxPayParam.timeStamp;
        }
        if ((i2 & 64) != 0) {
            str7 = wxPayParam.sign;
        }
        return wxPayParam.copy(str, str2, str3, str4, str5, str6, str7);
    }

    @NotNull
    public final String component1() {
        return this.appId;
    }

    @NotNull
    public final String component2() {
        return this.partnerId;
    }

    @NotNull
    public final String component3() {
        return this.prepayId;
    }

    @NotNull
    public final String component4() {
        return this.packageValue;
    }

    @NotNull
    public final String component5() {
        return this.nonceStr;
    }

    @NotNull
    public final String component6() {
        return this.timeStamp;
    }

    @NotNull
    public final String component7() {
        return this.sign;
    }

    @NotNull
    public final WxPayParam copy(@NotNull String appId, @NotNull String partnerId, @NotNull String prepayId, @NotNull String packageValue, @NotNull String nonceStr, @NotNull String timeStamp, @NotNull String sign) {
        Intrinsics.checkNotNullParameter(appId, "appId");
        Intrinsics.checkNotNullParameter(partnerId, "partnerId");
        Intrinsics.checkNotNullParameter(prepayId, "prepayId");
        Intrinsics.checkNotNullParameter(packageValue, "packageValue");
        Intrinsics.checkNotNullParameter(nonceStr, "nonceStr");
        Intrinsics.checkNotNullParameter(timeStamp, "timeStamp");
        Intrinsics.checkNotNullParameter(sign, "sign");
        return new WxPayParam(appId, partnerId, prepayId, packageValue, nonceStr, timeStamp, sign);
    }

    public boolean equals(@Nullable Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof WxPayParam)) {
            return false;
        }
        WxPayParam wxPayParam = (WxPayParam) obj;
        return Intrinsics.areEqual(this.appId, wxPayParam.appId) && Intrinsics.areEqual(this.partnerId, wxPayParam.partnerId) && Intrinsics.areEqual(this.prepayId, wxPayParam.prepayId) && Intrinsics.areEqual(this.packageValue, wxPayParam.packageValue) && Intrinsics.areEqual(this.nonceStr, wxPayParam.nonceStr) && Intrinsics.areEqual(this.timeStamp, wxPayParam.timeStamp) && Intrinsics.areEqual(this.sign, wxPayParam.sign);
    }

    @NotNull
    public final String getAppId() {
        return this.appId;
    }

    @NotNull
    public final String getNonceStr() {
        return this.nonceStr;
    }

    @NotNull
    public final String getPackageValue() {
        return this.packageValue;
    }

    @NotNull
    public final String getPartnerId() {
        return this.partnerId;
    }

    @NotNull
    public final String getPrepayId() {
        return this.prepayId;
    }

    @NotNull
    public final String getSign() {
        return this.sign;
    }

    @NotNull
    public final String getTimeStamp() {
        return this.timeStamp;
    }

    public int hashCode() {
        return (((((((((((this.appId.hashCode() * 31) + this.partnerId.hashCode()) * 31) + this.prepayId.hashCode()) * 31) + this.packageValue.hashCode()) * 31) + this.nonceStr.hashCode()) * 31) + this.timeStamp.hashCode()) * 31) + this.sign.hashCode();
    }

    @NotNull
    public String toString() {
        return "WxPayParam(appId=" + this.appId + ", partnerId=" + this.partnerId + ", prepayId=" + this.prepayId + ", packageValue=" + this.packageValue + ", nonceStr=" + this.nonceStr + ", timeStamp=" + this.timeStamp + ", sign=" + this.sign + ')';
    }
}